package com.ashen.boot.admin.project.system.datapermission.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ashen.boot.admin.domain.model.entity.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据权限表
 * </p>
 *
 * @author gao
 * @since 2021-11-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_sys_data_permission")
public class DataPermissionEntity extends BaseDomain {

    private static final long serialVersionUID = 1L;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 权限类型
     */
    @TableField("permission_type")
    private String permissionType;

    /**
     * 是否是行权限
     */
    @TableField("isrow")
    private Integer isrow;


    public static final String DESCRIPTION = "description";

    public static final String ID = "id";

    public static final String PERMISSION_TYPE = "permission_type";

    public static final String ISROW = "isrow";

}
